<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</head>
<body>
<ul id="emp">

</ul>
<script>
    $(function () {
        $.post("/emp/getAll",function(result){
            for (let i in result) {
                $("#emp").append("<li>"+result[i].ename+"</li>")
            }
        })
    })
</script>
</body>
</html>